MongoDB Administrator's Guide: Over 100 practical recipes to efficiently maintain and administer your MongoDB solution by Cyrus Dasadia

MongoDB Administrator's Guide: Over 100 practical recipes to efficiently maintain and administer your MongoDB solution by Cyrus Dasadia

Author:Cyrus Dasadia [Dasadia, Cyrus]
Language: eng
Format: azw3, pdf
Tags: COM021000 - COMPUTERS / Databases / General, COM088000 - COMPUTERS / System Administration / General, COM018000 - COMPUTERS / Data Processing
Publisher: Packt Publishing
Published: 2017-10-25T04:00:00+00:00


rs.status()

{

"state" : 10,

"stateStr" : "REMOVED",

"uptime" : 338,

> "optime" : {

"ts" : Timestamp(1503722619, 1),

"t" : NumberLong(5)

},

"optimeDate" : ISODate("2017-08-26T04:43:39Z"),

"ok" : 0,

"errmsg" : "Our replica set config is invalid or we are not a member of it",

"code" : 93,

"codeName" : "InvalidReplicaSetConfig"

}

MyReplicaSet:OTHER>

How it works...

In step 1, we connect to one of the three replica set members and check the replica set status. We want to ensure two things: one, that the connected node is primary, and that the node that we want to remove is secondary.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.